Skip to content

refactor(web): extract function, rename variables#16063

Merged
ermshiperete merged 3 commits into
masterfrom
refactor/web/refactorings
Jun 9, 2026
Merged

refactor(web): extract function, rename variables#16063
ermshiperete merged 3 commits into
masterfrom
refactor/web/refactorings

Conversation

@ermshiperete

Copy link
Copy Markdown
Contributor

Test-bot: skip

@keymanapp-test-bot

Copy link
Copy Markdown

User Test Results

Test specification and instructions

User tests are not required

@keymanapp-test-bot keymanapp-test-bot Bot added this to the A19S30 milestone Jun 3, 2026
@keyman-server keyman-server modified the milestones: A19S30, A19S31 Jun 8, 2026
mcdurdin
mcdurdin previously approved these changes Jun 8, 2026
Comment thread web/src/app/browser/src/keymanEngine.ts Outdated
* See https://help.keyman.com/developer/engine/web/current-version/reference/core/setKeyboardForControl
*
* @param {Element} elem The control element to be managed manually
* @param {string|null=} keyboard JSKeyboard (Clears the set keyboard if set to null)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment doesn't make sense to me - JSKeyboard doesn't describe what the parameter should be (if we are cleaning up we should fix it!)

Comment thread web/src/app/browser/src/keymanEngine.ts Outdated
*
* @param {Element} elem The control element to be managed manually
* @param {string|null=} keyboard JSKeyboard (Clears the set keyboard if set to null)
* @param {string|null=} languageCode Language Code

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also needs more clarity - what is the languageCode for? It doesn't make it clear that this needs to be part of a pair with the keyboard parameter to find a registered keyboard+language.

Comment thread web/src/app/ui/kmwuitoggle.ts Outdated
_name = '';
_lgCode='';
private async selectKbd(kbdIndex: number): Promise<boolean> {
let name, languageCode;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add types?

@ermshiperete ermshiperete requested a review from mcdurdin June 8, 2026 15:48
@ermshiperete ermshiperete dismissed mcdurdin’s stale review June 8, 2026 15:49

Requesting re-review

@ermshiperete ermshiperete merged commit 4b7379c into master Jun 9, 2026
6 checks passed
@ermshiperete ermshiperete deleted the refactor/web/refactorings branch June 9, 2026 06:44
@github-project-automation github-project-automation Bot moved this from Todo to Done in Keyman Jun 9, 2026
@keyman-server

Copy link
Copy Markdown
Collaborator

Changes in this pull request will be available for download in Keyman version 19.0.244-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants